package org.ch00.test07;

import java.util.Random;

/*
 *
 *@author XCH
 *@date 2025 - 03 - 07 - 10:41
 *
 */
public class Colour extends Thread {
    private String[] colour;

    public Colour(String[] colour) {
        this.colour = colour;
    }

    public void run(){
        for (int i = 0; i < colour.length; i++) {
            Random random = new Random();
            int randomNumber = random.nextInt(256);
            System.out.println("-------------------");
            System.out.println(colour[i] + ":" + randomNumber);
        }
    }
}